/************************************************************************/
/*																		*/
/*		School Hangover Project											*/
/*																		*/
/*		IMAC 2010														*/
/*		Author : 	Helena Duchaussoy									*/
/*					Isabelle Gouwy										*/
/*					Nathalie Kuoch										*/
/*					Franck Letellier									*/
/*					Louise Pequignot									*/
/*																		*/
/*		E-mail: flo-in-underware@googlegroups.com						*/
/*																		*/
/************************************************************************/
#ifndef __FLOWERPOT_H__
#define __FLOWERPOT_H__

#include "InteractiveObject.h"
#include "Player.h"


class FlowerPot : public InteractiveObject {

public:
	FlowerPot();
	FlowerPot(lua_State* L);
	~FlowerPot();

	void init();

	int load(lua_State* L);

private:
	KeyboardState* m_pkeyState;

	friend class Lunar<FlowerPot>;
	static const char className[];
	static Lunar<FlowerPot>::RegType methods[];

};

// Callback class to handle keyboard event
class FlowerPotActionCallback : public osg::NodeCallback {

public:
	FlowerPotActionCallback(KeyboardState* keyState) {
		m_pkeyState = keyState;
	}

	virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);

protected:
	KeyboardState* m_pkeyState;
};

#endif // __FLOWERPOT_H__
